/*
 * MIT License
 *
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANT KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#ifndef HARMONY_CLIP_PATH_VIEW_SRC_MAIN_CPP_CLIPPATHVIEWJSIBINDER_H
#define HARMONY_CLIP_PATH_VIEW_SRC_MAIN_CPP_CLIPPATHVIEWJSIBINDER_H

#include "RNOHCorePackage/ComponentBinders/ViewComponentJSIBinder.h"

namespace rnoh {
    class ClipPathViewJSIBinder : public ViewComponentJSIBinder {
        facebook::jsi::Object createNativeProps(facebook::jsi::Runtime &rt) override {
            auto object = ViewComponentJSIBinder::createNativeProps(rt);
            object.setProperty(rt, "d", "string");
            object.setProperty(rt, "opacity", "float");
            
            object.setProperty(rt, "mask", "string");
            object.setProperty(rt, "oldMask", "string");
            object.setProperty(rt, "fillColor", "int");
            object.setProperty(rt, "fillOpacity", "float");
            object.setProperty(rt, "fillRule", "string");
            object.setProperty(rt, "strokeColor", "int");
            object.setProperty(rt, "strokeOpacity", "float");
            object.setProperty(rt, "strokeWidth", "float");
            object.setProperty(rt, "strokeCap", "string");
            object.setProperty(rt, "strokeJoin", "string");
            object.setProperty(rt, "strokeMiter", "float");
            object.setProperty(rt, "strokeStart", "float");
            object.setProperty(rt, "strokeEnd", "float");
            object.setProperty(rt, "shadowColor", "int");
            object.setProperty(rt, "shadowOpacity", "float");
            object.setProperty(rt, "shadowRadius", "float");
            object.setProperty(rt, "shadowOffsetX", "float");
            object.setProperty(rt, "shadowOffsetY", "float");
            object.setProperty(rt, "shadowOffsetIsPercent", "bool");
            object.setProperty(rt, "bgColor", "int");
            object.setProperty(rt, "scale", "float");
            object.setProperty(rt, "scaleX", "float");
            object.setProperty(rt, "scaleY", "float");
            object.setProperty(rt, "scaleOrigin", "float");
            object.setProperty(rt, "scaleOriginX", "float");
            object.setProperty(rt, "scaleOriginY", "float");
            object.setProperty(rt, "scaleIsPercent", "float");
			object.setProperty(rt, "rotation", "float");            
			object.setProperty(rt, "rotationOx", "float");
		    object.setProperty(rt, "rotationOY", "float");
            object.setProperty(rt, "rotationIsPercent", "bool");
            object.setProperty(rt, "translationX", "float");
            object.setProperty(rt, "translationY", "float");
            object.setProperty(rt, "translationIsPercent", "bool");
            return object;
        }
    };
} // namespace  rnoh
#endif
